package com.george.model.user.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 角色枚举
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum EmployeeEnum implements IEnum<Integer> {
    ADMIN(1, "管理员"),
    WORKER(2, "工人"),
    WAITER(3, "服务员");

    private Integer value;
    private String desc;

    EmployeeEnum(final Integer value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    public String getDesc(){
        return this.desc;
    }
}
